include ../../Makehead

LdFlags += -r
CFlags += -finline-functions -I../../include
CPP += -I../../include

.S.s:
	$(CPP) -o $*.s $<
.c.s:
	$(CC) $(CFlags) -S -o $*.s $<
.s.o:
	$(AS) -o $*.o $<
.c.o:
	$(CC) $(CFlags) -c -o $*.o $<

OBJS = error.o  math_emulate.o 

build: math.a

math.a: $(OBJS)
	@$(AR) rcs math.a $(OBJS)
	@sync 

clean:
	rm -rf *.o *.s math.a 